import sys
import os
from jinja2 import Environment, PackageLoader, Template, FileSystemLoader
import mdf.debug
import mdf.config

loader = FileSystemLoader( mdf.config.default_template_dir )
env = Environment( loader = loader )

class AboutFile():
	def __init__( self, filename ):
		self.filename = filename
		mdf.debug.dprint( filename )

	def render( self ):
		#generate template
		templ = env.get_template("about.thtml")
		f = open( self.filename, "w" )
		f.write( templ.render() )
		f.close()
